﻿#include "appendcheck.h"
#include "ui_appendcheck.h"

appendCheck::appendCheck(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::appendCheck)
{
    ui->setupUi(this);

    this->setFixedSize(this->size());//锁定窗口大小
}

appendCheck::~appendCheck()
{
    delete ui;
}

void appendCheck::on_btnCancel_clicked()
{
    this->reject();
}


void appendCheck::on_btnOk_clicked()
{
    if(ui->editDate->text().isEmpty() || ui->editCOurseName->text().isEmpty() || ui->editStuName->text().isEmpty()){
        QMessageBox::warning(0,"警告","信息不完整,请继续填写.");
        return;
    }
    emit append(ui->editDate->text(),ui->spinIndex->text(),ui->editCOurseName->text(),ui->editStuName->text(),ui->combType->currentText());
    this->accept();
}

